#include <glib.h>

gint main(gint argc, gchar **argv)
{
    GBytes *bytes1;
    GBytes *bytes2;
    gint ret = 0;
    gboolean equal = FALSE;
    
    bytes1 = g_bytes_new ("blah", 4);
    
    bytes2 = g_bytes_new ("blah", 4);
    ret = g_bytes_compare (bytes1, bytes2);
    equal = g_bytes_equal(bytes1, bytes2);
    g_print("ret:%d, equal:%s \n", ret, equal ? "TRUE" : "FALSE");
    g_bytes_unref (bytes2);
    
    bytes2 = g_bytes_new ("bla", 3);
    ret = g_bytes_compare (bytes1, bytes2);
    equal = g_bytes_equal(bytes1, bytes2);
    g_print("ret:%d, equal:%s \n", ret, equal ? "TRUE" : "FALSE");
    g_bytes_unref (bytes2);
    
    bytes2 = g_bytes_new ("abcd", 4);
    ret = g_bytes_compare (bytes1, bytes2);
    equal = g_bytes_equal(bytes1, bytes2);
    g_print("ret:%d, equal:%s \n", ret, equal ? "TRUE" : "FALSE");
    g_bytes_unref (bytes2);

    g_bytes_unref (bytes1);

    return 0;
}